# Dockerfile
# RUN yum -y install vim
# RUN yum -y install net-tools

FROM node
ENV MYPATH /usr/web_admin
WORKDIR $MYPATH
COPY package*.json ./
# RUN npm i yarn -g
RUN yarn

COPY . .
# RUN npm run build
RUN npm start

# COPY Dist /usr/Dist

# FROM nginx

# 删除默认的nginx配置
# RUN rm -v /etc/nginx/nginx.conf
# # 添加本地nginx配置
# ADD nginx.conf /etc/nginx/

# # mkdir /usr/myProject
# COPY myProject /usr/myProject

EXPOSE 8082

# CMD ["node" , "app.js" ]
